import _http from '@/utils/http'

export default {
    /**
     * 商品订单相关
     */
    asdOrderList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/asd/order/qry-list',
            apiName: '商品订单列表',
        }, params, loading, headers)
    },

    asdOrderDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/asd/order/detail',
            apiName: '商品订单详情',
        }, params, loading, headers)
    },

    asdOrderOffpayAudit(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/asd/order/offpay-audit',
            apiName: '商品订单线下支付审核',
        }, params, loading, headers)
    },

    /**
     * 售卡订单相关
     */
    withdrawOrderList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/withdraw/order/list',
            apiName: '提现订单列表',
        }, params, loading, headers)
    },
    withdrawOrderDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/withdraw/order/detail',
            apiName: '提现订单详情',
        }, params, loading, headers)
    },
    orderQryList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/qry/list',
            apiName: '订单列表',
        }, params, loading, headers)
    },
    orderQryListDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/qry/list/down',
            apiName: '订单导出',
        }, params, loading, headers)
    },
    offlineTemplete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/offline/templete',
            apiName: '非在网订单导入模板',
        }, params, loading, headers)
    },
    offlineUpload(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/offline/upload',
            apiName: '非在网订单导入',
        }, params, loading, headers)
    },
    refreshTemplete(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/active/status/refresh/templete',
            apiName: '订单状态批量更新模板',
        }, params, loading, headers)
    },
    statusRefresh(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/active/status/refresh',
            apiName: '订单状态更新',
        }, params, loading, headers)
    },
    orderDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/qry/detail',
            apiName: '订单详情',
        }, params, loading, headers)
    },
    undesensitization(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/order/qry/undesensitization',
            apiName: '订单信息不脱敏数据',
        }, params, loading, headers)
    },
    incomeOrderList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/income/order/list',
            apiName: '佣金订单列表',
        }, params, loading, headers)
    },
    goodsChooseList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/goods/choose/list',
            apiName: '筛选框的商品列表',
        }, params, loading, headers)
    },
    incomeOrderDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/income/order/list/down',
            apiName: '佣金订单列表下载',
        }, params, loading, headers)
    },
    withdrawOrderDown(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/withdraw/order/list/down',
            apiName: '提现订单列表下载',
        }, params, loading, headers)
    },
    dtkOrderList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/dtk/self/order/list',
            apiName: '电商订单查询',
        }, params, loading, headers)
    },
    dtkOrderDetail(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/dtk/self/order/detail',
            apiName: '电商订单详情',
        }, params, loading, headers)
    },
    shopChooseList(params, loading, headers) {
        return _http('post', {
            url: '/ums/manage/shop/choose/list',
            apiName: '代理商下拉',
        }, params, loading, headers)
    },
    quanyiOrderList(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/quanyi/order/list',
            apiName: '权益订单',
        }, params, loading, headers)
    },
    withdrawOrderExport(params, loading, headers) {
        return _http('post', {
            url: '/eas/manage/income/withdraw/order/export',
            apiName: '提现订单导入',
        }, params, loading, headers)
    },
}
